<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel='stylesheet' href='/kiSunnyShop/css/main1.css'/>
<script src="./js/memberShip_title.js"></script>
<title>title.jsp</title>
</head>
<body>
<%
	String sessionMid=(String)session.getAttribute("sessionMid");//object type라 형변한..sessionMid=null;java
/* 	sessionMid= "kkk"; */
	if(sessionMid==null){
%>
<form name='frm' method='post' action='./Community/login.jsp'>
<div id="title_m" align="right" class="google">
		<label>I D:&nbsp;</label> <input type='text' name='mid' id="mid"/>
				<label>PASSWORD:&nbsp;</label> <input type='password' name='pwd' id="pwd"/>
				<input type='submit' value='Login' id='btnLogin' class='google' />
				<label><a href="index1.jsp?inc=./Community/memberShip.jsp"  style="text-decoration:none" >&nbsp;&nbsp;JOIN |</label></a>
				<label><a href="index1.jsp?inc=./Community/m_search_id.jsp"  style="text-decoration:none" >&nbsp;&nbsp;아이디 찾기  | </label></a>
				<label><a href="index1.jsp?inc=./Community/m_search_pw.jsp"  style="text-decoration:none" >&nbsp;&nbsp; 비밀번호 찾기 </label></a>
</div>
</form>
<%}else{ %>
<div align="right">
<%=session.getAttribute("sessionMid") %>님 방가
<input type='button' value='로그아웃' id='btnLogout' align="right" " />
</div>
<%} %>
	
<script>login();</script>
</html>